function trying to parse a number fails